package app.caretrack.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "Services")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Service extends NamedBaseModel {

    private ServicePlan servicePlan;

    @ManyToOne(fetch = FetchType.EAGER)
    public ServicePlan getServicePlan() {
        return this.servicePlan;
    }

    public void setServicePlan(ServicePlan servicePlan) {
        this.servicePlan = servicePlan;
    }

}
